package com.njym.java.security.auth.feign;

import com.njym.java.security.api.vo.user.AppUserInfo;
import com.njym.java.security.api.vo.user.UserInfo;
import com.njym.java.security.auth.configuration.FeignConfiguration;
import com.njym.java.security.auth.util.user.JwtAuthenticationRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @program: family-benefit
 *
 * @description:
 *
 * @author: lijie
 *
 * @create: 2019-11-14 11:11
 **/
@FeignClient(value = "family-app",configuration = FeignConfiguration.class)
public interface AUserService {
    @RequestMapping(value = "/api/appuser/validate", method = RequestMethod.POST)
    public AppUserInfo validate(JwtAuthenticationRequest authenticationRequest);
}
